import request from '../util/request'

const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'


export function loadParkfieldApi(params) {
  return request({
    url:baseUrl+ "/lcparkfield",
    method: "get",
    params: params
  });
}


export function addParkfieldApi(form) {
  return request({
    url:baseUrl+ "/lcparkfield",
    method: "post",
    data: form
  })
}

export function updateParkfieldApi(form) {
    return request({
      url:baseUrl+ "/lcparkfield",
      method: "put",
      data: form
    })
  }

export function delParkfieldApi(row) {
  return request({
    url:baseUrl+ "/lcparkfield/selective",
    method: "delete",
    data: {
      id: row.id
    }
  })
}

export function updateSettlementDateByParkfield(form) {
  return request({
    url:baseUrl+ "/lcparkfield/updateSettlementDateByParkfield",
    method: "put",
    params: form
  })
}
